#include<stdio.h>
#include<string.h>
#include<windows.h>

int main()
{
    char a =10;
    printf("%d %d %d \n", a,sizeof(a),sizeof(char));          // char 1字节= 8bit  = 2^8 = -2**7~2**7-1 = -128 ~ +127
    short name=20;
    printf("%d %d %d \n", name,sizeof(name),sizeof(short));   //short 2字节= 16bit = 2^16= -2**15~2**15-1 = -32768 ~ +32767
    int age=30;
    printf("%d %d %d \n", age,sizeof(age), sizeof(age));       //int 4字节= 32bit = 2^32= -2**31~2**31-1 
    long weight=50;
    printf("%d %d %d \n", weight,sizeof(weight), sizeof(long));  //long 4字节= 32bit = 2^32= -2**31~2**31-1 
    float height=171.50;
    printf("%.2f %d %d \n", height,sizeof(height), sizeof(float));   //float 4字节= 32bit   -3.4*10(-38)～3.4*10(38)

    double  pai1 = 3.141592653589793; 
    printf("%.17lf %d %d\n",pai1,sizeof(pai1), sizeof(double));       // double 8字节 = 64bit

    long long pai = 9223372036854775807;
    printf("%lld %d %d\n",pai,sizeof(pai), sizeof(long long));       // long long 8字节 = 64bit=2^64 [-2^63~2^63] -9223372036854775808~9223372036854775807。

    return 0;
}